package studemo;

import java.util.ArrayList;
import java.util.List;

public class Main {
	public static void main(String[] args) {
		Student s=new Student("李四", '男', 19);
		Student s1=new Student();
		s1.setName("张三");
		s1.setGender('女');
		s1.setAge(20);
		List<Student> stu=new ArrayList<Student>();
		stu.add(s);
		stu.add(s1);
		for (Student stud : stu) {
			System.out.println("我叫："+stud.getName()+" "+"我是"+stud.getGender()+"生"+"我今年"+stud.getAge()+"岁了");
		}
	}
}
